<%--
    Document   : index
    Created on : 18.07.2009, 19:23:39
    Author     : Mario
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" type="text/css" href="serverStyles.css" />
        <title>JSP Page</title>
    </head>
    <body>
        <jsp:useBean id="consumers" scope="session" class="de.stalinski.accounting.ConsumersConnector" />
        <jsp:useBean id="beep" scope="session" class="de.stalinski.util.Beep" />




        <%
        String index = request.getParameter("index");
        String status = request.getParameter("status");
        String un = request.getParameter("un");
        beep.beep();
        if(consumers.getCustomers(index, status)!=null) {
        out.print(consumers.getCustomers(index,status));
            } else {
                                      %><jsp:forward page="index.jsp"/><%
            }
        
        %>

    </body>
</html>
